module.exports = function(config){
  config.set({

    basePath : './',

    files: [
      {pattern: 'app/bower_components/angular/angular.js', included: false }, 
      {pattern: 'app/bower_components/angular-route/angular-route.js', included: false }, 
      {pattern: 'app/bower_components/angular-resource/angular-resource.js', included: false },
      {pattern: 'app/bower_components/angular-mocks/angular-mocks.js', included: false }, 
      {pattern: 'app/bower_components/jquery/dist/jquery.js', included: false },     
      {pattern: 'app/js/**/*.js', included: false }, 
      {pattern: 'test/unit/**/*.js', included: false }, 
      'test/test-main.js'
    ],
    exclude: ['app/js/webreader.js'],

    autoWatch : true,

    frameworks: ['jasmine', 'requirejs'],

    browsers : ['Chrome'],

    plugins : [
            'karma-chrome-launcher',          
            'karma-jasmine',
            'karma-requirejs',
            'karma-junit-reporter'
            ],

    junitReporter : {
      outputFile: 'test_out/unit.xml',
      suite: 'unit'
    }

  });
};